package com.java.mall_imooc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.mall_imooc.common.utils.PageUtils;
import com.java.mall_imooc.common.utils.R;
import com.java.mall_imooc.entity.Shipping;
import com.java.mall_imooc.form.ShippingForm;

import java.util.Map;

/**
 * 
 *
 * @author jl
 * @since 2020-03-14 23:41:10
 */
public interface ShippingService extends IService<Shipping> {

    PageUtils queryPage(Shipping shipping,Integer pageNum, Integer pageSize);

    R<Map<String,Integer>> add(Integer userId, ShippingForm shippingForm);

    R delete(Integer userId, Integer shippingId);

    R update(Integer userId, Integer shippingId, ShippingForm shippingForm);
}

